:host {
  flex: 1;
  max-height: 100%;
  max-width: 100%;
  display: flex;
}

.mdc-list-item {
  &:hover {
    background-color: var(--ngm-color-primary-container-variant);
  }
}

.pac-cube-structure-drop {
  @apply rounded-xl m-1 border border-dashed border-slate-200 p-4 dark:border-neutral-800;
}

.pac-cube__join-table-container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;

  .table-join {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
  }
}

.join-table {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  max-width: 317px;
  padding: 5px;
  font-size: 12px;
  line-height: 20px;
  word-break: break-all;
  height: 38px;
  min-width: 100px;
  margin-bottom: 1rem;
  border-radius: 5px;

  &::before {
    content: '';
    border-radius: 3px;
    width: 3px;
    height: 100%;
  }

  .join-table-name {
    flex: 1;
    margin-left: 5px;
  }
}

.table-join {
  .join-icon {
    position: relative;
    display: inline-block;
    width: 32px;
    height: 20px;
    background-repeat: no-repeat;
    background-position: 50%;
    background-size: contain;
    cursor: pointer;
  }

  .join-icon-with-connector {
    position: relative;
    margin: 0 27px;

    &::before,
    &::after {
      position: absolute;
      top: 50%;
      width: 28px;
      height: 1px;
      background-color: #7387b7;
      content: '';
    }

    &::before {
      left: 1px;
      transform: translate(-100%, -50%);
    }

    &::after {
      right: 1px;
      transform: translate(100%, -50%);
    }
  }

  .left-join-icon {
    background-image: url();
  }
  .inner-join-icon {
    background-image: url();
  }
  .right-join-icon {
    background-image: url();
  }
}

.join-fields-form {
  .fit-form-field.mat-button {
    min-width: unset;
  }
}

.pac-data-type-tag {
  border-color: var(--ngm-color-outline);
  @apply text-xs leading-3 inline-flex items-center px-3 py-1 rounded-full overflow-hidden text-ellipsis border border-solid;
}

:host::ng-deep {
  .mat-mdc-checkbox {
    .mat-internal-form-field {
      width: 100%;
    }

    .mdc-form-field > label {
      flex: 1;
    }
  }
}
